<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateScenicTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('scenic', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('title')->nullable()->comment('景点名称');
			$table->string('voice')->nullable()->comment('音频(以url形式)');
			$table->string('thumb')->nullable()->comment('封面');
			$table->string('desc')->nullable()->comment('描述');
			$table->text('content', 65535)->nullable()->comment('文字叙述');
			$table->integer('sort')->nullable();
			$table->boolean('status')->nullable()->comment('1启用2禁用');
			$table->timestamps();
			$table->string('page_id', 100)->nullable();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('scenic');
	}

}
